import { IconButtonColor } from "@/components/GuatIconButton/type";
import { ButtonProps } from "@arco-design/web-vue";

export type InternalActionsName = "add" | "del" | "cancel" | "search";

export type InternalIconActionsName = "edit" | "delete" | "check" | "withdraw";

export interface Action extends Partial<ButtonProps> {
  text?: string;
  tip?: string;
  icon?: string;
  iconSize?: number;
  color?: IconButtonColor;
  internal?: InternalIconActionsName;
  permission?: string | string[];
  onClick?: (...args: any[]) => any;
}
